package com.esxy.cloud.service.impl;


import com.esxy.cloud.mapper.PaymentMapper;
import com.esxy.cloud.pojo.Payment;
import com.esxy.cloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;


    @Override
    public List<Payment> getPayment() {
        return paymentMapper.getPayment();
    }

//    @Override
//    public int InsertPayment(int id, String serial) {
//        return paymentMapper.InsertPayment(id, serial);
//    }

    @Override
    public int InsertPayment(Payment payment) {
        return paymentMapper.InsertPayment(payment);
    }

    @Override
    public int DeletePayment(Integer id) {
        return paymentMapper.DeletePayment(id);
    }

    @Override
    public int UpdatePayment(Payment payment) {
        return  paymentMapper.UpdatePayment(payment);
    }
}
